package cn.wd.service;

import cn.wd.domain.Video;
import cn.wd.page.PageResult;
import cn.wd.qo.QueryObject;

public interface IVideoService<T> {

    Video getById(String videoId);

    default PageResult<T> query(QueryObject qo) {
        return PageResult.empty(qo.getCurrentPage(), qo.getPageSize());
    }

    void changeStatus(Long id, String status);

    void updateById(Video video);

    void save(Video video);

    void deleteById(Long id, boolean deleted);

}